package IHM;

import java.util.HashMap;

public class ClavierImpl implements Clavier {
	
	boolean start=false, stop=false, inc=false, dec=false;
	HashMap<Integer, Boolean> mapTouche;
	
	public ClavierImpl(){
		mapTouche = new HashMap<Integer, Boolean>();
		mapTouche.put(1, start);
		mapTouche.put(2, stop);
		mapTouche.put(3, inc);
		mapTouche.put(4, dec);
	}

	@Override
	public boolean touchePressee(int i) {
		return mapTouche.get(i);
	}
	
	public void modifierEtatTouche(int buttonNumber, boolean value){
		mapTouche.put(buttonNumber, value);
	}
	
}
